package com.jye.rseven.service;

import com.jye.rseven.domain.Classes;
import com.jye.rseven.domain.User;

import java.util.List;

public interface ClassService {


    Classes findClassById(int id);

    List<Classes> findAllClass(int skip,int limit);

    List<Classes> findMyClassesByUserId(int u_id,int skip,int limit);

    int addClass(Classes classes);

    int updateClass(Classes classes);

    String addUserToClass(int u_id, int c_id);

    List<User> findClassUsersByCId(int cId);

    List<Classes> findClassByCId(int cId);

    String addUsersToClass(int[] uId, int cId);

    List<User> findClassUserById(int id);

    Classes findClassByShareCode(String shareCode);

    List<Classes> findClassByName(String name);

    String deleteClassById(int id);

    String deleteUserToClassByUIdAndCId(int uId, int cId);

    int isInClass(int uId, int cId);

    List<User> findClassUserMonthsCreditById(int id);

    List<User> findClassUserCreditById(int id);
}
